﻿//-----------------------------------------------------------------------
// <copyright file="RollOverIsland.cs" company="Microsoft Corporation">
//     Copyright Microsoft Corporation. All Rights Reserved. This code released under the terms of the Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) This is sample code only, do not use in production environments.
// </copyright>
//-----------------------------------------------------------------------

namespace Microsoft.ALMRangers.VsarTreasureMap.WindowsStoreApp.Views.Controls
{
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Media;

    /// <summary>
    /// Properties for the RollOverIsland control.
    /// </summary>
    public sealed class RollOverIsland : Button
    {
        /// <summary>
        /// The standard image property
        /// </summary>
        public static readonly DependencyProperty StandardImageProperty = DependencyProperty.Register("StandardImage", typeof(ImageSource), typeof(RollOverIsland), new PropertyMetadata(null));

        /// <summary>
        /// The rollover image property
        /// </summary>
        public static readonly DependencyProperty RolloverImageProperty = DependencyProperty.Register("RolloverImage", typeof(ImageSource), typeof(RollOverIsland), new PropertyMetadata(null));

        /// <summary>
        /// Initializes a new instance of the <see cref="RollOverIsland"/> class.
        /// </summary>
        public RollOverIsland()
        {
            this.DefaultStyleKey = typeof(RollOverIsland);
        }

        /// <summary>
        /// Gets or sets the standard image.
        /// </summary>
        /// <value>The standard image.</value>
        public ImageSource StandardImage
        {
            get { return this.GetValue(StandardImageProperty) as ImageSource; }
            set { this.SetValue(StandardImageProperty, value); }
        }       

        /// <summary>
        /// Gets or sets the roll-over image.
        /// </summary>
        /// <value>The rollover image.</value>
        public ImageSource RolloverImage
        {
            get { return this.GetValue(RolloverImageProperty) as ImageSource; }
            set { this.SetValue(RolloverImageProperty, value); }
        }
    }
}
